package com.rankeiot.developer;

import com.rankeiot.core.anno.Menu;
import com.rankeiot.core.anno.Permission;
import com.rankeiot.platform.PlatformMenu;

/**
 * 系统菜单定义
 */
@SuppressWarnings("AlibabaConstantFieldShouldBeUpperCase")
@Menu(value = "开发平台", icon = "icon-cog", id = DevelopMenu.ID, order = 999)
public interface DevelopMenu {
    String ID = PlatformMenu.ID+".dev";

    @Menu(value = "数据表", path = "develop/datatable/datatable.vue", icon = "jeicon-database",order=1)
    String DATATABLE = ID + ".datatable";

    @Menu(value = "功能表单", path = "develop/datatable.vue", icon = "jeicon-database",order=1)
    String TABLEMETA = ID + ".tableMeta";

    // 表信息增删改权限
    @Permission(value = "新增", parent = TABLEMETA)
    String TABLEMETA_ADD = TABLEMETA + ".add";
    @Permission(value = "修改", parent = TABLEMETA)
    String TABLEMETA_EDIT = TABLEMETA + ".edit";
    @Permission(value = "删除", parent = TABLEMETA)
    String TABLEMETA_DELETE = TABLEMETA + ".delete";
    @Permission(value = "生成数据表", parent = TABLEMETA)
    String TABLEMETA_GEN_TABLE = TABLEMETA + ".gen_table";

    //SQL数据集，API数据集，文件(csv,excel)数据集
    // ，MQTT数据集，可写数据集(数据表，MQTT推送，Http推送)
    @Menu(value = "数据集", icon = "jeicon-database",path = "develop/datasource.vue",order = 2)
    String dataset=ID+".dataset";
    //Http post订阅,MQTT订阅，指定处理函数,鉴权信息,payload，是否写入数据表
    @Menu(value = "消息订阅", icon = "jeicon-database",path = "develop/datasource.vue",order = 3)
    String subscribe=ID+".subscribe";

    @Menu(value = "代码编辑器", icon = "icon-menu",path = "_blank:/developer/index.html",order = 10)
    String editor=ID+".editor";

    @Permission(value="修改",parent = editor)
    String editor_EDIT=editor+".edit";
    @Permission(value="删除",parent = editor)
    String editor_DELETE=editor+".del";
}
